package com.mmall.param;

import javax.validation.constraints.NotNull;

import lombok.Data;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

@Data
public class MenuParam{

	private String id;
	
	@NotBlank(message = "菜单名称不可以为空")
    @Length(max = 15, min = 2, message = "菜单名称长度需要在2-15个字之间")
    private String name;

    private String href;

    private String requestUrl;

    private String code;
    
    private String level;

    private String icon;

    private String target;

    private String parentId;

    @NotNull(message = "展示顺序不可以为空")
    private String seq;

    @NotNull(message = "状态不可以为空")
    private String status = "0";
    
    @Length(max = 150, message = "备注的长度需要在150个字以内")
    private String remark;

}